﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModalForgetPassword.aspx.cs" Inherits="PaydSystem.UI.Modal.ModalForgetPassword" %>

<!DOCTYPE html>

<html lang="en"  >
<head runat="server">
    <title></title>
    <style>
        .label-left
        {
            text-align:left !important;
            margin-top:5px !important;
        }
        .label-right
        {
            text-align:right !important;
            margin-top:5px !important;
        }
    </style>
</head>
<body>
    <div class="modal-header">
	    <button type="button" class="glyphicon glyphicon-remove-circle close" ng-click="closeModal(99);" aria-hidden="true"></button>
        <h3 class="modal-title">โปรดกรอกอีเมล์หลักที่ใช้สมัคร</h3>
    </div>
    <div class="modal-body form-horizontal">
        <div ng-form="ForgetPasswordForm">
            <div class="form-group" >
                <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 label-right" >
                    อีเมล์หลัก<span class="red_alert">*</span>
                </div>
                <div class="col-lg-9 col-md-9 col-sm-9 col-xs-9" ng-class="{true: 'error'}[submitted && ForgetPasswordForm.emailPrimary.$invalid]"  >
                    <input type="email" class="form-control" ng-model="emailPrimary" name="emailPrimary" ng-class="{red_control: submitted && ForgetPasswordForm.emailPrimary.$invalid}" required="" />
                    <span class="help-inline red_alert" ng-show="submitted && ForgetPasswordForm.emailPrimary.$error.required" style="position:absolute;font-size: 20px;">อีเมล์หลักจำเป็นต้องใส่</span>
                    <span class="help-inline red_alert" ng-show="submitted && ForgetPasswordForm.emailPrimary.$error.email" style="position:absolute;font-size: 20px;">อีเมล์ไม่ถูกต้อง</span>
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
            &nbsp;
        </div>
        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
            <span ng-show="saving" class="glyphicon glyphicon-refresh spinner"></span>
            <button ng-hide="saving" type="submit" ng-click="sendEmailForForgetPwd(ForgetPasswordForm.$valid);" class="btn btn-primary btn-block">ส่ง</button>
        </div>
        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
            <button type="button" class="btn btn-block btn-danger" ng-click="closeModal(99);" >ปิด</button>
        </div>
    </div>
</body>
</html>
